package top.jybill.utils;

public class TokenUtils {
   /**
   * 提取公共方法: 将token转成指定的key
   * @return
   */
  public static <T> T getMap(String authorization, String key, Class<T> clazz) {
    Object keyObj = JwtUtil.getClaim(authorization).get(key);
    return clazz.cast(keyObj);
  }
}
